package com.heima.mpdemo.util;

import com.heima.mpdemo.entity.Users;

public class UserThreadLocal {

    private static ThreadLocal<Users> userHolder = new ThreadLocal<>();

    public static void set(Users user){
        userHolder.set(user);
    }

    public static Users get(){
        return userHolder.get();
    }




}
